<!DOCTYPE html>
<!-- Created by 白墨 on 2021/4/17 22:31:05-->
<html lang="zh-cmn-Hans-CN" xmlns:th="http://www.thymeleaf.org">

<head th:replace="admin/_fragments::head(~{::title})">
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>后台管理</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
  <link rel="stylesheet" href="../../static/css/me.css">
</head>

<body>
<!--导航-->
<nav th:replace="admin/_fragments :: menu(0)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small" >
  <div class="ui container">
    <div class="ui inverted secondary stackable menu">
      <h2 class="ui blue header item">管理后台</h2>
      <a href="#" class="active m-item item m-mobile-hide"><i class=" home icon"></i>博客</a>
      <a href="#" class=" m-item item m-mobile-hide"><i class="idea icon"></i>分类</a>
      <a href="#" class="m-item item m-mobile-hide"><i class=" tags icon"></i>标签</a>
      <div class="right m-item m-mobile-hide menu">
        <div class="ui dropdown  item">
          <div class="text">
            <img alt="" class="ui avatar image" src="../../static/image/me.jpg" th:src="@{/image/me.jpg}"/>
            白墨
          </div>
          <i class="dropdown icon"></i>
          <div class="menu">
            <a href="#" th:href="@{/admin/logout}" class="item">注销</a>
          </div>
        </div>
      </div>
    </div>
  </div>
  <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
    <i class="sidebar icon"></i>
  </a>
</nav>
<br>
<br>
<br>
<br>
<!--中间内容-->
<div  class="m-container-small m-padded-tb-big">
  <div class="ui container">
    <div class="ui success large message">
      <h3>Hi,</h3>
      <p>[[${session.user.nickname}]]，欢迎登录！</p>
      <p>上次登录IP：[[${session.user.loginIP}]]</p>
      <p>上次登录时间：[[${loginTime}]]</p>
    </div>

  </div>
</div>
<br>
<br>
<br>
<br>

<!-- 底部 -->
<footer th:replace="_fragments::footer" class="ui inverted vertical segment m-padded-tb-massive">
</footer>

<script src="https://lib.baomitu.com/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>


<script>
  $('.menu.toggle').click(function() {
    $('.m-item').toggleClass('m-mobile-hide');
  });

  $('.ui.dropdown').dropdown({
    on: 'hover'
  });
  $('#newblog-container').load("[[@{/footer/newblog}]]");
</script>
</body>

</html>